import "./indexAd.less";
import { Button } from "antd";
const href = "https://au.cnooc.com.cn/idp/oauth2/authorize?redirect_uri=" + import.meta.env.VITE_URLS;
const LoginAd: React.FC = () => {
  const handleAuthClick = () => {
    window.open(href, "_self"); // 替换为你需要导航到的 URL
  };
  return (
    <div className="home-background">
      <Button onClick={handleAuthClick} className={"buttonStyle"}>
        统一认证登录
      </Button>
      {/*<a href={href} target="_self" className="auth-link">
        统一认证登录
      </a>*/}
    </div>
  );
};

export default LoginAd;
